﻿<body onLoad="onLoad();">
    <script type="text/javascript">
        function onLoad()
        {
            var e = document.getElementById("someDivId");
            e.focus();
        }
    </script>
    
<div id="someDivId" contenteditable="true" tabindex="0"></div>
<div id="btn" style="width: 100px; height: 100px; background:red" onclick="onLoad()"></div>
</body>​